<?php

/**
 * @name comments.php
 * @msg 评论
 * @date 2015-07-08
 * @author:LiuYang
 */
namespace haibao\comment\model\data;

class Comments extends \haibao\comment\model\data\Base {
    
    /**
     * 是否含有敏感词 0 含有 1 不含有
     */
    const ISSENSITIVE_HAVE = 0;
    const ISSENSITIVE_NO = 1;
    
    
    /**
     * 敏感词  其中1：政治敏感词；2：普通敏感词 
     */
    const ALL_KEYWORDS = 0;
    const POLITICS_KEYWORDS = 1;
    const AD_KEYWORDS = 2;

	/**
	 * 评论来源
	 */
	const HB_WAP = '海报手机用户';
	const TX_WEIBO = '腾讯微博';
	const SINA_WEIBO = '新浪微博';
	const HB_APP = '海报街拍APP';
	const HB_PC = '海报PC用户';
	
	/**
	 * 评论未审核
	 */
	const VERIFY_NO = 0;
	/**
	 * 评论已审核
	 */
	const VERIFY_YES = 1;
	
    /**
    * 匿名
    */
   const PUBLIC_NO = 0;
    
   /**
    * 不匿名
    */
   const PUBLIC_YES = 1;
   
   /**
    * 正常状态
    */
   const STATUS_OK = 0;
   
   /**
    * 已删除
    */
   const STATUS_DELETE = 1;

    /**
     * 评论来源海报手机版
     */
   const SOURCE_PMPHONE  = 0;
   
   /**
    * 评论来源-腾讯
    */
   const SOURCE_TENCENT  = 1;
   
   /**
    * 评论来源-新浪
    */
   const SOURCE_SINA  = 2;
   
   /**
    * 评论来源-明星街拍
    */
   const SOURCE_STREET  = 5;
   
   /**
    * 评论来源-海报PC版
    */
   const SOURCE_PC  = 6;
   
   /**
    * 非后台数据
    */
   const BACK_NO = 0;
   
   /**
    * 后台数据
    */
   const BACK_YES = 1;
   
   /**
    * 
    */
   const CREATEBY = 0;
   
  /**
   * 文章ID
   */
  
   public $ObjectId;

   /**
    * 用户ID
    */
   
   public $UserId;
   
   /**
    * 回复用户ID
    */
   
   public $ReplyUserId = 0;
   
   /**
    * 回复内容ID
    */
    
   public $ReplyCommentId = 0;
   
   
   /**
    *评论内容
    */
   
   public $Comment;
   
   /**
    *IP地址
    */
   
   public $IP;
   
   /**
    *评论状态
    */
   
   public $Status = 0;
   
   
   /**
    *举报次数
    */
   
   public $Report ;
   
   /**
    *点赞次数
    */
   
   public $Praise;
   
   /**
    *评论来源
    */
   
   public $Source;
   
   /**
    *评论类型ID
    */
   
   public $CommentsTypeCode;
   
   /**
    *用户昵称
    */
   
   public $UserNick;

   
   /**
    *创建时间
    */
   
   public $CreateTime;
   
   /**
    * 评论类型名称
    */
   public $CommentTypeName;
   
   /**
    *是否匿名
    */
    
   public $IsPublic = 1;
   /**
    * 游客
    */
   public $UnregUserId;
   /**
    * 我的评论
    */
   public $MyComment;
   /**
    * 楼层id
    */
   public $FloorId;
   /**
    * 回复盖楼评论id
    */
   public $CommentIds;

  /**
   * 访问URL
   */ 
  public $AccessUrl;

  /**
   * 回复ID的用户名
   */
  
  public $ReplyName;
  
  /**
   * 文章所属频道
   */
  public $Channel;
  /**
   *评论回复数 
   */
  public $ReplyNum;

  /**
   * public title
   */
  public $PublicTitle;
  
  /**
   * 第三方数据推送
   */
  public $ThirdPushType = array();
  
  /**
   * 评论审核
   */
  public $IsVerify = 0;
  
  public $hostIsDel;
  /**
   *是否为后台数据 
   */
  public $IsBack = 0;
  
  public $CreateBy = 0;
  
  public $CreateByUserName;
  
  public $HasChildComment = true;
  
  public $HostCommentIsDel = TRUE;

  /**
   * 是否含有敏感词 0 含有 1 不含有
   */
  public $IsSensitive;
  
  public $CommentContent;
  
  public $ReplyCommentContent;
  
  public $hostReplyNum = 0;
  
  public function __construct() {
    parent::__construct ();
    
    $this->intField('ObjectId', 'ObjectId',true);
    $this->intField('UserId', 'UserId',true);
    $this->stringField('ReplyUserId', 'ReplyUserId');
    $this->intField('ReplyCommentId', 'ReplyCommentId');
    $this->stringField ( 'Comment', 'Comment', true );
    $this->stringField ( 'MyComment', 'MyComment');
    $this->stringField ( 'IP', 'IP', true );
    $this->intField ( 'Status', 'Status',true );
    $this->intField ( 'IsPublic', 'IsPublic',true );
    $this->intField ( 'Report', 'Report' );
    $this->intField ( 'Praise', 'Praise');
    $this->stringField ( 'Source', 'Source',true );
    $this->stringField ( 'CommentsTypeCode', 'CommentsTypeCode', true );
    $this->stringField ( 'UserNick', 'UserNick', true );
    $this->stringField ( 'UnregUserId', 'UnregUserId');
    $this->stringField ( 'FloorId', 'FloorId');
    $this->stringField ( 'CommentIds', 'CommentIds');
    $this->dateField ( 'CreateTime', 'CreateTime', true );
    $this->intField ( 'ReplyNum', 'ReplyNum');
    $this->intField ( 'Channel', 'Channel');
    $this->intField('IsVerify', 'IsVerify');
    $this->intField('IsSensitive', 'IsSensitive');
    $this->intField('IsBack', 'IsBack', true);
    $this->intField('CreateBy', 'CreateBy', true);
    $this->setTableName ( 'Comments' );
  }
}